import React, {Component} from 'react';
import { Badge,Card,NoticeBar, Button,Scroller,Popup,Group, Field, Toast,NumberPicker, Context,SelectField, Dialog,Table,Layer   } from 'saltui';



export default class AddButton extends React.Component {

  constructor(props) {
    super(props);
    this.state ={};
    this.state.id = this.props.id;
  }


  button(){
    return   this.props.typeObj
  }

  render(){
    let Add =this.button() ;
    return <div>
      <Button type="secondary"  size="small" onClick={() => {
      Popup.show(Add, {
        animationType: 'slide-down',
      });
    }} >新增</Button>
     </div>
  }

}
